
<form id="edit" class="form-horizontal form-ajax "  role="form" data-toggle="validator" method="POST" action="">

    <div class="panel panel-default panel-intro">
        <div class="panel-heading">
            <ul class="nav nav-tabs">
                <li class="active"><a href="#a1" data-toggle="tab">{:__('活动基本信息')}</a></li>

                <li ><a href="#a2" data-toggle="tab">{:__('中文文案配置')}</a></li>
                <li ><a href="#a3" data-toggle="tab">{:__('英文文案配置')}</a></li>
            </ul>
        </div>

        <div class="panel-body">
            <div id="myTabContent" class="tab-content" style="">

                <div class="tab-pane active" id="a1">

                    <!-- <div class="form-group">
                        <label for="type" class="control-label col-xs-12 col-sm-2">{:__('活动类型')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="type" name="row[type]" value="" data-rule="required;type"/>
                        </div>
                    </div> -->

                    <!-- <div class="form-group">
                        <label for="model_id" class="control-label col-xs-12 col-sm-2">{:__('活动模板')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="type" name="row[model_id]" value="" data-rule="required;model_id"/>
                        </div>
                    </div> -->
                    <div class="form-group">
                        <label for="model_id" class="control-label col-xs-12 col-sm-2">{:__('群活动邀请地址')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <p><a href="{$activityUrl}" target="_blank">{$activityUrl}</a>  保存后生效</p>

                        </div>
                    </div>


                    <div class="form-group">
                        <label for="theme_id" class="control-label col-xs-12 col-sm-2">{:__('官方活动主题')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            {$activityThemeList}

                        </div>
                    </div>

                    <div class="form-group">
                        <label for="c-logo" class="control-label col-xs-12 col-sm-2">{:__('活动模板')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-model-logo" data-rule="" class="form-control" size="50" name="row[model_logo]" type="text" value="{$row.logo}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="plupload-model-logo" class="btn btn-danger plupload" data-input-id="c-model-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-model-logo"><i class="fa fa-upload"></i> {:__('自定义模板')}</button></span>
                                    <!-- <span><button type="button" id="fachoose-model-logo" class="btn btn-primary fachoose" data-input-id="c-model-logo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('选择活动模板')}</button></span> -->
                                </div>
                                <span class="msg-box n-right" for="c-model-logo"></span>
                            </div>
                            <ul class="row list-inline plupload-preview" id="p-model-logo"></ul>
                        </div>
                    </div>

                    <!-- <div class="form-group">
                        <label for="logo" class="control-label col-xs-12 col-sm-2">{:__('活动LOGO')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="logo" name="row[logo]" value="" data-rule="required;logo"/>

                        </div>
                    </div> -->

                    <div class="form-group">
                        <label for="c-logo" class="control-label col-xs-12 col-sm-2">{:__('活动LOGO')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-logo" data-rule="" class="form-control" size="50" name="row[logo]" type="text" value="{$row.logo}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="plupload-logo" class="btn btn-danger plupload" data-input-id="c-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-logo"><i class="fa fa-upload"></i> {:__('上传LOGO')}</button></span>
                                    <!-- <span><button type="button" id="fachoose-logo" class="btn btn-primary fachoose" data-input-id="c-logo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span> -->
                                </div>
                                <span class="msg-box n-right" for="c-logo"></span>
                            </div>
                            <ul class="row list-inline plupload-preview" id="p-logo"></ul>
                        </div>
                    </div>

                    <!-- <div class="form-group">
                        <label for="chat_bot_id" class="control-label col-xs-12 col-sm-2">{:__('活动所在群')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="chat_bot_id" name="row[chat_bot_id]" value="" data-rule="required;chat_bot_id"/>

                        </div>
                    </div> -->

                    <div class="form-group">
                        <label for="join_button_text" class="control-label col-xs-12 col-sm-2">{:__('群名称')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="join_button_text" name="row[join_button_text]" value="{$row.join_button_text}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="join_button_url" class="control-label col-xs-12 col-sm-2">{:__('群TELEGRAM链接地址')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="join_button_url" name="row[join_button_url]" value="{$row.join_button_url}"/>

                        </div>
                    </div>

                    <div class="form-group">
                        <label for="started_at" class="control-label col-xs-12 col-sm-2">{:__('活动开始时间')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <!-- <input type="text" class="form-control" id="started_at" name="row[started_at]" value="" data-rule="required;started_at"/> -->
                            <input id="started_at" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[started_at]" type="text" value='{$row.started_at|date="Y-m-d H:i:s",###}'>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="stoped_at" class="control-label col-xs-12 col-sm-2">{:__('活动结束时间')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <!-- <input type="text" class="form-control" id="stoped_at" name="row[stoped_at]" value="" data-rule="required;stoped_at"/> -->
                            <input id="stoped_at" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[stoped_at]" type="text" value='{$row.stoped_at|date="Y-m-d H:i:s",###}'>
                        </div>
                    </div>


                    <div class="form-group">
                        <label for="activate_type" class="control-label col-xs-12 col-sm-2">{:__('活动激活方式')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            {$activateTypeList}
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="tokenman_url" class="control-label col-xs-12 col-sm-2">{:__('联系TokenMan地址')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="tokenman_url" name="row[tokenman_url]" value="{$row.tokenman_url}" data-rule="required;tokenman_url" placeholder="https://t.me/XXX tokenman username"/>
                        </div>
                    </div>


                    <div class="form-group">
                        <label for="rate" class="control-label col-xs-12 col-sm-2">{:__('邀请奖励')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="rate" name="row[rate]" value="{$row.rate}" data-rule="required;rate"/>

                        </div>
                    </div>

                    <div class="form-group">
                        <label for="group_rate" class="control-label col-xs-12 col-sm-2">{:__('入群奖励')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="group_rate" name="row[group_rate]" value="{$row.group_rate}" data-rule="required;group_rate"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="rate_unit" class="control-label col-xs-12 col-sm-2">{:__('邀请奖励单位')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="rate_unit" name="row[rate_unit]" value="{$row.rate_unit}" data-rule="required;rate_unit"/>

                        </div>
                    </div>

                    <div class="form-group">
                        <label for="activity_end_text" class="control-label col-xs-12 col-sm-2">{:__('活动结束文案')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea class="form-control" id="activity_end_text" name="row[activity_end_text]" rows="4" cols="80">{$row.activity_end_text}</textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="remarks" class="control-label col-xs-12 col-sm-2">{:__('活动备注')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea class="form-control" id="remarks" name="row[remarks]" rows="4" cols="80">{$row.remarks}</textarea>

                        </div>
                    </div>

                    <div class="form-group">
                        <label for="remarks" class="control-label col-xs-12 col-sm-2">{:__('相关链接')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group m-b"><span class="input-group-addon">twitter</span>
                                <input id="twitter" name="row[twitter]" value="{$row['twitter']}" class="form-control" type="text" aria-required="true" aria-invalid="true" class="error">
                            </div>
                             <div class="input-group m-b"><span class="input-group-addon">facebook</span>
                                <input id="facebook" name="row[facebook]" value="{$row['facebook']}" class="form-control" type="text" aria-required="true" aria-invalid="true" class="error">
                            </div>
                            <div class="input-group m-b"><span class="input-group-addon">telegram</span>
                                <input id="telegram" name="row[telegram]" value="{$row['telegram']}" class="form-control" type="text" aria-required="true" aria-invalid="true" class="error">
                            </div>
                            <div class="input-group m-b"><span class="input-group-addon">web</span>
                                <input id="web" name="row[web]" value="{$row['web']}" class="form-control" type="text" aria-required="true" aria-invalid="true" class="error">
                            </div>
                        </div>
                    </div>





                </div>

                <div class="tab-pane fade" id="a2">


                    <!-- <div class="form-group">
                        <label for="title" class="control-label col-xs-12 col-sm-2">{:__('标题')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="title" name="row[title]" value=""/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="join_button_text" class="control-label col-xs-12 col-sm-2">{:__('加入群文案')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="join_button_text" name="row[join_button_text]" value=""/>
                        </div>
                    </div> -->

                    <div class="form-group">
                        <label for="placeholder_text" class="control-label col-xs-12 col-sm-2">{:__('输入钱包地址文案')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="placeholder_text" name="row[placeholder_text]" value="{$row.placeholder_text}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="message" class="control-label col-xs-12 col-sm-2">{:__('描述')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea class="form-control summernote" id="message" name="row[message]">{$row.message}</textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="rule" class="control-label col-xs-12 col-sm-2">{:__('活动细则')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea class="form-control" id="rule" name="row[rule]" rows="4" cols="80">{$row.rule}</textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="en_step1" class="control-label col-xs-12 col-sm-2">{:__('STEP1设置')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="en_step1" name="row[en_step1]" value="{$row.en_step1}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="en_step2" class="control-label col-xs-12 col-sm-2">{:__('STEP2设置')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="en_step2" name="row[en_step2]" value="{$row.en_step2}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="en_step3" class="control-label col-xs-12 col-sm-2">{:__('STEP3设置')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="en_step3" name="row[en_step3]" value="{$row.en_step3}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="en_step4" class="control-label col-xs-12 col-sm-2">{:__('STEP4设置')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="en_step4" name="row[en_step4]" value="{$row.en_step4}"/>
                        </div>
                    </div>

                    <!-- <div class="form-group">
                        <label for="bottom_text" class="control-label col-xs-12 col-sm-2">{:__('底部文案')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="bottom_text" name="row[bottom_text]" value="{$row.bottom_text}"/>
                        </div>
                    </div> -->

                </div>

                <div class="tab-pane fade" id="a3">

                    <!-- <div class="form-group">
                        <label for="title" class="control-label col-xs-12 col-sm-2">{:__('En标题')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="title" name="row[title]" value=""/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="en_join_button_text" class="control-label col-xs-12 col-sm-2">{:__('En加入群文案')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="en_join_button_text" name="row[en_join_button_text]" value=""/>
                        </div>
                    </div> -->

                    <div class="form-group">
                        <label for="en_placeholder_text" class="control-label col-xs-12 col-sm-2">{:__('En输入钱包地址文案')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="en_placeholder_text" name="row[en_placeholder_text]" value="{$row.en_placeholder_text}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="message" class="control-label col-xs-12 col-sm-2">{:__('En描述')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea class="form-control summernote" id="en_message" name="row[en_message]">{$row.en_message}</textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="en_rule" class="control-label col-xs-12 col-sm-2">{:__('En活动细则')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea class="form-control" id="en_rule" name="row[en_rule]" rows="4" cols="80">{$row.en_rule}</textarea>
                        </div>
                    </div>


                    <div class="form-group">
                        <label for="step1" class="control-label col-xs-12 col-sm-2">{:__('STEP1设置')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="step1" name="row[step1]" value="{$row.step1}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="step2" class="control-label col-xs-12 col-sm-2">{:__('STEP2设置')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="step2" name="row[step2]" value="{$row.step2}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="step3" class="control-label col-xs-12 col-sm-2">{:__('STEP3设置')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="step3" name="row[step3]" value="{$row.step3}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="step4" class="control-label col-xs-12 col-sm-2">{:__('STEP4设置')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="step4" name="row[step4]" value="{$row.step4}"/>
                        </div>
                    </div>


                    <!-- <div class="form-group">
                        <label for="en_bottom_text" class="control-label col-xs-12 col-sm-2">{:__('En底部文案')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input type="text" class="form-control" id="en_bottom_text" name="row[en_bottom_text]" value=""/>
                        </div>
                    </div> -->
                </div>
            </div>
        </div>
    </div>

    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
